package com.book.result;

public enum ResultEnum {

    USERNAME_SB("1","用户名已存在"),
    PASSWORD_NULL("2","密码不能为空"),
    CODE_SB("3","验证码错误"),
    SUCCESS("4","操作成功"),
    REDIS_CG("5","缓存成功"),
    FAIL("6","操作失败"),
    SENDMESSAGE_SUCCESS("7","验证码发送成功"),
    ADD_CART_SUCCESS("8","加入购物车成功"),
    REFUND_SUCCESS("9","退款成功"),
    SECKILL_REQUEST("10","当前秒杀请求过多，请稍后再试"),
    SECKILL_SUCCESS("11","秒杀成功"),
    SECKILL_END("12","秒杀结束"),
    NUM_NOT("13","库存不足"),
    REGISTER_CG("14","注册成功"),
    REGISTER_SB("15","注册失败");
    private String code;
    private String smg;

    ResultEnum() {
    }

    ResultEnum(String code, String smg) {
        this.code = code;
        this.smg = smg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSmg() {
        return smg;
    }

    public void setSmg(String smg) {
        this.smg = smg;
    }
}
